import request from '@/utils/request'

// 获取标签分类
export async function getTagClassify(params) {
  return request('/Amaidan-Users-Web/user/baseLabelClassify/selectClassifyName', {
    method: 'POST',
    data: params,
  });
}

// 删除该标签分类
export async function delCurrClassify(params) {
  return request('/Amaidan-Users-Web/user/baseLabelInfo/deleteLabelInfo', {
    method: 'POST',
    data: params,
  });
}

// 获取标签分类列表
export async function fetechClassifyList(params) {
  return request('/Amaidan-Users-Web/user/baseLabelInfo/selectLabelInfo', {
    method: 'POST',
    data: params,
  });
}

// 新增标签
export async function addTags(params) {
  return request('/Amaidan-Users-Web/user/baseLabelInfo/addLabelInfo', {
    method: 'POST',
    data: params,
  })
}

// 更新标签分类
export async function updateClassify(params) {
  return request('/Amaidan-Users-Web/user/baseLabelClassify/updateClassify', {
    method: 'POST',
    data: params,
  })
}
// 新增标签分类
export async function addClassify(params) {
  return request('/Amaidan-Users-Web/user/baseLabelClassify/addClassify', {
    method: 'POST',
    data: params,
  })
}

// 删除该标签分类
export async function labelClassifyDelete(params) {
  return request('/Amaidan-Users-Web/user/baseLabelClassify/LabelClassifyDelete', {
    method: 'POST',
    data: params,
  })
}
